/*
 * Copyright (c) 2021. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.pobing.client.feign;

import com.pobing.protobuf.lib.revert.Revert;
import com.pobing.protobuf.lib.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author xfworld
 * @since create on 2021-12-03.
 **/
@FeignClient(value = "protobufService")
public interface ProtobufService {

    @RequestMapping(method = RequestMethod.POST , value = "/test/getTime",produces = "application/x-protobuf",consumes = "application/x-protobuf")
    public Revert feign(@RequestBody User user);
}
